<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\Order */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="order-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'ext_order_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'increment_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'magento_order_id')->textInput() ?>

    <?= $form->field($model, 'payment_method')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'storehouse_id')->textInput() ?>

    <?= $form->field($model, 'payment_status')->dropDownList([ 'processing' => 'Processing', 'canceled' => 'Canceled', 'closed' => 'Closed', 'complete' => 'Complete', 'fraud' => 'Fraud', 'holded' => 'Holded', 'payment_review' => 'Payment review', 'paypal_canceled_reversal' => 'Paypal canceled reversal', 'paypal_reversed' => 'Paypal reversed', 'pending' => 'Pending', 'pending_payment' => 'Pending payment', 'pending_paypal' => 'Pending paypal', 'paypal_dispute' => 'Paypal dispute', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'order_type')->dropDownList([ '' => '', 'stock' => 'Stock', 'custom' => 'Custom', 'taobao' => 'Taobao', 'mixture' => 'Mixture', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'order_status')->dropDownList([ 'pending' => 'Pending', 'waiting_shipped' => 'Waiting shipped', 'shipped' => 'Shipped', 'processing' => 'Processing', 'cancelled' => 'Cancelled', 'pick_waiting' => 'Pick waiting', 'picking' => 'Picking', 'waiting_production' => 'Waiting production', 'in_production' => 'In production', 'waiting_accept' => 'Waiting accept', 'pending_purchase' => 'Pending purchase', 'purchase' => 'Purchase', 'return_exchange_process' => 'Return exchange process', 'return_exchange_completed' => 'Return exchange completed', 'waiting_transfer' => 'Waiting transfer', 'transferring' => 'Transferring', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'last_track_status')->dropDownList([ 'normal' => 'Normal', 'address_changed' => 'Address changed', 'item_changed' => 'Item changed', 'shipping_method_changed' => 'Shipping method changed', 'change_confirmed' => 'Change confirmed', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'shipping_method')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_method_origin')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_description')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_description_origin')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_track_no')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'waybill')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'payment_at')->textInput() ?>

    <?= $form->field($model, 'process_at')->textInput() ?>

    <?= $form->field($model, 'has_shipment')->textInput() ?>

    <?= $form->field($model, 'shipped_at')->textInput() ?>

    <?= $form->field($model, 'shipped_count')->textInput() ?>

    <?= $form->field($model, 'total_item_count')->textInput() ?>

    <?= $form->field($model, 'edited')->textInput() ?>

    <?= $form->field($model, 'approved')->textInput() ?>

    <?= $form->field($model, 'blocked')->textInput() ?>

    <?= $form->field($model, 'paused')->textInput() ?>

    <?= $form->field($model, 'paused_uid')->textInput() ?>

    <?= $form->field($model, 'changed')->textInput() ?>

    <?= $form->field($model, 'reshipped')->textInput() ?>

    <?= $form->field($model, 'expedited')->textInput() ?>

    <?= $form->field($model, 'created_at')->textInput() ?>

    <?= $form->field($model, 'updated_at')->textInput() ?>

    <?= $form->field($model, 'uid')->textInput() ?>

    <?= $form->field($model, 'website_id')->textInput() ?>

    <?= $form->field($model, 'store_id')->textInput() ?>

    <?= $form->field($model, 'from')->dropDownList([ 'mobile' => 'Mobile', 'pc' => 'Pc', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'currency_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'grand_total')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_grand_total')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'static_grand_total')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'subtotal')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_subtotal')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_shipping_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'discount_points')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'discount_points_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_discount_points_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'system_discount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'discount_description')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'package_return')->textInput() ?>

    <?= $form->field($model, 'shipping_insurance')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_shipping_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'store_credit_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'static_store_credit_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_store_credit_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'gift_card_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_gift_card_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'ups_special')->textInput() ?>

    <?= $form->field($model, 'has_gift')->textInput() ?>

    <?= $form->field($model, 'has_prime_gift')->textInput() ?>

    <?= $form->field($model, 'transaction_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'presale')->textInput() ?>

    <?= $form->field($model, 'presale_timeline')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'magento_return_id')->textInput() ?>

    <?= $form->field($model, 'tariff_insurance_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_tariff_insurance_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'coupon_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'coupon_rule_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'prime_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'base_prime_discount_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'google_order_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shipping_tax_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'has_print_shipment_label')->textInput() ?>

    <?= $form->field($model, 'has_bundle')->textInput() ?>

    <?= $form->field($model, 'magento_user_lev_ordered')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'customer_id')->textInput() ?>

    <?= $form->field($model, 'customer_group')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'haiwaicang_export')->textInput() ?>

    <?= $form->field($model, 'haiwaicang_export_uid')->textInput() ?>

    <?= $form->field($model, 'guuid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'is_fraud')->textInput() ?>

    <?= $form->field($model, 'distributor')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'distributor_order_id')->textInput() ?>

    <?= $form->field($model, 'source')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'blocked2')->textInput() ?>

    <?= $form->field($model, 'weight')->textInput() ?>

    <?= $form->field($model, 'sync_success')->textInput() ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'orders_type')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
